package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UserMapper extends BaseMapper<Users> {
    //查询全部用户
    public List<Users> selectAll();
    //查询个别用户
    public List<Users> selectSome(String username);
    //用户查询个人信息
    public Users selectByte(String username);
    //用户修改个人信息
    public boolean updateByte(Users users);
    //添加用户信息
    public boolean insertByte(Users users);
    //删除用户信息
    public boolean delByte(Integer userid);
}
